﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package org.aswing.geom {

    public class IntDimension {

        public var width:int = 0;
        public var height:int = 0;

        public function IntDimension(_arg1:int=0, _arg2:int=0){
            this.width = _arg1;
            this.height = _arg2;
        }
        public static function createBigDimension():IntDimension{
            return (new IntDimension(100000, 100000));
        }

        public function setSize(_arg1:IntDimension):void{
            this.width = _arg1.width;
            this.height = _arg1.height;
        }
        public function setSizeWH(_arg1:int, _arg2:int):void{
            this.width = _arg1;
            this.height = _arg2;
        }
        public function increaseSize(_arg1:IntDimension):IntDimension{
            this.width = (this.width + _arg1.width);
            this.height = (this.height + _arg1.height);
            return (this);
        }
        public function decreaseSize(_arg1:IntDimension):IntDimension{
            this.width = (this.width - _arg1.width);
            this.height = (this.height - _arg1.height);
            return (this);
        }
        public function change(_arg1:int, _arg2:int):IntDimension{
            this.width = (this.width + _arg1);
            this.height = (this.height + _arg2);
            return (this);
        }
        public function changedSize(_arg1:int, _arg2:int):IntDimension{
            var _local3:IntDimension = new IntDimension(_arg1, _arg2);
            return (_local3);
        }
        public function combine(_arg1:IntDimension):IntDimension{
            this.width = Math.max(this.width, _arg1.width);
            this.height = Math.max(this.height, _arg1.height);
            return (this);
        }
        public function combineSize(_arg1:IntDimension):IntDimension{
            return (this.clone().combine(_arg1));
        }
        public function getBounds(_arg1:int=0, _arg2:int=0):IntRectangle{
            var _local3:IntPoint = new IntPoint(_arg1, _arg2);
            var _local4:IntRectangle = new IntRectangle();
            _local4.setLocation(_local3);
            _local4.setSize(this);
            return (_local4);
        }
        public function equals(_arg1:Object):Boolean{
            var _local2:IntDimension = (_arg1 as IntDimension);
            if (_local2 == null){
                return (false);
            };
            return ((((this.width === _local2.width)) && ((this.height === _local2.height))));
        }
        public function clone():IntDimension{
            return (new IntDimension(this.width, this.height));
        }
        public function toString():String{
            return ((((("IntDimension[" + this.width) + ",") + this.height) + "]"));
        }

    }
}//package org.aswing.geom 
